package com.aaa.forum.services;

import org.springframework.transaction.annotation.Transactional;

public interface IArticleLikeService {
    /**
     * 点赞帖子
     * @param userId        用户id
     * @param articleId     帖子id
     */
    @Transactional
    void like(Long userId, Long articleId);


    /**
     * 取消点赞
     * @param userId        用户id
     * @param articleId     帖子id
     */
    @Transactional
    void cancel(Long userId, Long articleId);

    /**
     * 获取点赞状态
     * @param userId        用户id
     * @param articleId     帖子id
     */
    Byte getState(Long userId, Long articleId);
}
